import { createApp } from 'vue'
import App from './App.vue'
import '@nutui/touch-emulator'
import NutUI from '@nutui/nutui'
import router from './router/index.js'
import "@nutui/nutui/dist/style.css";
import '@nutui/icons-vue/dist/style_iconfont.css'
if (!window.cordova) {
    document.addEventListener(
        "deviceready", () => {
            const app = createApp(App)
            app.use(NutUI)
                .use(router)
            app.mount('#app')

        })
} else {
    if (!window.cordova.plugins || !window.cordova.plugins.RyBridge) {
        setTimeout(() => {
            const app = createApp(App)
            app.use(NutUI)
                .use(router)
            app.mount('#app')
        }, 3000);
    } else {
        const app = createApp(App)
        app.use(NutUI)
            .use(router)
        app.mount('#app')

    }

}
